package io.navigation.modules.navigation.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.navigation.common.utils.PageUtils;
import io.navigation.common.utils.Query;

import io.navigation.modules.navigation.dao.NavigationClassificationDao;
import io.navigation.modules.navigation.entity.NavigationClassificationEntity;
import io.navigation.modules.navigation.service.NavigationClassificationService;


@Service("navigationClassificationService")
public class NavigationClassificationServiceImpl extends ServiceImpl<NavigationClassificationDao, NavigationClassificationEntity> implements NavigationClassificationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<NavigationClassificationEntity> page = this.selectPage(
                new Query<NavigationClassificationEntity>(params).getPage(),
                new EntityWrapper<NavigationClassificationEntity>()
        );

        return new PageUtils(page);
    }

}
